package com.foton.lotterydomain.rule.service.engine;

import com.foton.lotterydomain.rule.service.logic.LogicFilter;
import com.foton.lotterydomain.rule.service.logic.impl.UserAgeFilter;
import com.foton.lotterydomain.rule.service.logic.impl.UserGenderFilter;
import jdk.nashorn.internal.ir.CallNode;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @Author RenPu
 * @Date 2024/1/4 17:49
 * @Version 1.0
 * @Description:
 **/
public class EngineConfig {

    protected static Map<String, LogicFilter>filterContainer=new ConcurrentHashMap();

    @Resource
    private UserAgeFilter userAgeFilter;

    @Resource
    private UserGenderFilter userGenderFilter;


    @PostConstruct
    public void init (){
        filterContainer.put("userAge",userAgeFilter);
        filterContainer.put("userGender",userGenderFilter);
    }

}
